package top.toptimus.dto.measure;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 对应s_style_fit_r
 */
@NoArgsConstructor
@Data
public class StyleFitDTO {
    private String itemCd;
    private String itemValue;
    private Double inValue;
    private Double outValue;
    private Double fitValue;
    private Double garmentSize;

    public StyleFitDTO(
            String itemCd,
            String itemValue,
            Double inValue,
            Double outValue,
            Double fitValue
    ) {
        this.itemCd = itemCd;
        this.itemValue = itemValue;
        this.inValue = inValue;
        this.outValue = outValue;
        this.fitValue = fitValue;
        this.garmentSize = this.fitValue + this.outValue + this.inValue;
    }
}
